//
//  MsgDetails.m
//  iCan - iPhone Context-Aware Navigation
//  Carnegie Mellon University - 18-842 Distributed Systems
//
//  Created by Andrew Santell on 3/26/12.
//  Copyright (c) 2012 Andrew Santell. All rights reserved.

/* When a user clicks on a message in the Table View, this View controller will contain the entire message and more data */

#import "MsgDetails.h"

@interface MsgDetails ()

@end

@implementation MsgDetails
@synthesize date;
@synthesize from;
@synthesize messageData;
@synthesize scrollView;
@synthesize fromText, msgText, dateText;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	from.text = fromText;
    messageData.text = msgText;
    date.text = dateText;
}

- (void)viewDidUnload
{
    [self setFrom:nil];
    [self setMessageData:nil];
    [self setScrollView:nil];
    [self setDate:nil];
    [self setFromText:nil];
    [self setMsgText:nil];
    [self setDateText:nil];
    [super viewDidUnload];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
